﻿<%@ Page Title="" Language="C#" AutoEventWireup="false" MasterPageFile="~/SIPO.master"  CodeFile="recCorporateActionCurrentform.aspx.cs" Inherits="SIPO.Web.forms.Transaction.recCorporateActionCurrentform" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" Runat="Server">

    <link href="<%= ResolveUrl("~/styles/chosen/chosen.min.css") %>" rel="stylesheet" type="text/css" />

    <script src="<%= ResolveUrl("~/scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%= ResolveUrl("~/scripts/jquery.validate.wrapper.js") %>" type="text/javascript"></script>
    <script src="<%= ResolveUrl("~/scripts/jquery.inputmask.bundle.min.js") %>" type="text/javascript"></script>

    <script src="<%= ResolveUrl("~/scripts/chosen/chosen.jquery.min.js") %>" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function () {

            $('#<%= ddlDebtor.ClientID %>').chosen({ placeholder_text_single: "-- pilih emiten aksi --" });
            $('#<%= ddlSubSubSector.ClientID %>').chosen({ placeholder_text_single: "-- pilih jenis usaha --" });

            $("#btnNext").button({ icons: { primary: "ui-icon-circle-arrow-e"} });
            $("#<%= btnBack.ClientID %>").button({ icons: { primary: "ui-icon-circle-arrow-w"} });
            $("#btnCancel").button({ icons: { primary: "ui-icon-close"} });
            $("#<%= btnSubmit.ClientID %>").button({ icons: { primary: "ui-icon-disk"} });

        });

    </script>

    <script type="text/javascript">

        function OpenInNewTab(url) {
            var win = window.open(url, '_blank');
            win.focus();
        }

        function Disabled() {
            //$('#<%= txtNilaiEmisi.ClientID %>').hide();
            $('#<%= txtNilaiEmisi.ClientID %>').attr('disabled', 'disabled');
            $('#<%= txtNilaiEmisi.ClientID %>').val('');
        }

        function Enabled() {
            //$('#<%= txtNilaiEmisi.ClientID %>').show();
            $('#<%= txtNilaiEmisi.ClientID %>').removeAttr('disabled');
        }

        function GetTariff() {

            var corporateActionTypeID = $("#<%= ddlCorporateActionType.ClientID %> option:selected").val();

            var nilaiEmisi = $('#<%= txtNilaiEmisi.ClientID %>').val();

            var subSubSectorId = ($("#<%= ddlSubSubSector.ClientID %> option:selected").val() == undefined) ? 0 : $("#<%= ddlSubSubSector.ClientID %> option:selected").val().split('|')[2];

            if (corporateActionTypeID > 0 && subSubSectorId > 0) {

                var handlerUrl = '<%= ResolveUrl("~/AjaxHandler/Loaddata/getTariff.ashx?CorporateActionTypeID=' + corporateActionTypeID + '&NilaiEmisi=' + nilaiEmisi + '") %>' + '&SubSubSectorId=' + subSubSectorId;

                $.ajax({
                    type: 'POST',
                    url: handlerUrl,
                    contentType: 'application/json',
                    dataType: 'json',
                    success: function (data) {
                        if (data.IsFormula == '0' || data.IsFormula == '') {
                            $('#trNilai').hide();
                            Disabled();
                        }
                        else {
                            $('#trNilai').show();
                            Enabled();
                        }

                        $('#txtTariffId').val(data.TariffID);
                        $('#<%= hfInvoiceValue.ClientID %>').val(data.InvoiceValue);
                        $('#<%= hfImpositionBaseID.ClientID %>').val(data.ImpositionBaseID);
                    },
                    error: function () {
                        alert('Error!');
                    }
                });
            }

        }
   
    </script>

    <script type="text/javascript" language="javascript">

        $(document).ready(function () {

            $('#btnCancel').click(function () {
                window.location = '/sipo/default.aspx';
            });

            var isInternal = '<%= Request.Params["isInternal"] %>';

            $("#<%= txtCorporateName.ClientID %>").inputmask("Regex", { regex: "[A-Za-z-.0-9 ]*" });

            $("#<%= txtCorporateSector.ClientID %>").inputmask("Regex", { regex: "[A-Za-z-.0-9 ]*" });

            $("#<%= txtKodePos.ClientID %>").inputmask("Regex", { regex: "[0-9]*" });

            $("#<%= txtTelpon.ClientID %>").inputmask("Regex", { regex: "[0-9+-]*" });

            $("#<%= txtFax.ClientID %>").inputmask("Regex", { regex: "[0-9-+]*" });

            $("#<%= txtWebsite.ClientID %>").inputmask("Regex", { regex: "[A-Za-z-.0-9_/: ]*" });

            $("#<%= txtAlamat1.ClientID %>").inputmask("Regex", { regex: "[A-Za-z-.0-9 ]*" });

            $("#<%= txtAlamat2.ClientID %>").inputmask("Regex", { regex: "[A-Za-z-.0-9 ]*" });

            $("#<%= txtAlamat3.ClientID %>").inputmask("Regex", { regex: "[A-Za-z-.0-9 ]*" });

            $("#<%= txtNPWP.ClientID %>").inputmask('99.999.999.9-999.999');

            $('#<%= txtNilaiEmisi.ClientID %>').blur(function () {

                GetTariff();

            });

            $("#<%= txtNilaiEmisi.ClientID %>").inputmask("decimal", { radixPoint: ",", autoGroup: true, groupSeparator: ".", groupSize: 3, digits: 2, repeat: 18 });

            $.validator.addMethod("regex", function (value, element, parameters) {
                var re = new RegExp(parameters);
                return re.test(value);
            });


            // 1. prepare the validation rules and messages.
            var rules = {
                '<%= ddlDebtor.UniqueID %>': "required",
                '<%= txtCorporateName.UniqueID %>': "required",
                '<%= ddlSubSubSector.UniqueID %>': "required",
                '<%= txtNPWP.UniqueID %>': { regex: '[0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9].[0-9]-[0-9][0-9][0-9].[0-9][0-9][0-9]' },
                '<%= txtKodePos.UniqueID %>': "number",
                '<%= txtEmail.UniqueID %>': {
                    required: true,
                    email: true
                },
                '<%= ddlCorporateActionType.UniqueID %>': "required"
            };

            var messages = {
                '<%= ddlDebtor.UniqueID %>': "Emiten aksi wajib dipilih",
                '<%= txtCorporateName.UniqueID %>': "Nama Perusahaan wajib di isi",
                '<%= ddlSubSubSector.UniqueID %>': "Jenis usaha emiten wajib dipilih",
                '<%= txtNPWP.UniqueID %>': "Format NPWP harus benar 00.000.000.0-000.000",
                '<%= txtKodePos.UniqueID %>': "Kode pos harus di isi dengan angka",
                '<%= txtEmail.UniqueID %>': {
                    required: "Email wajib di isi",
                    email: "Format alamat Email harus berformat xxx@domain.xxx"
                },
                '<%= ddlCorporateActionType.UniqueID %>': "Jenis aksi korporasi wajib dipilih"
            };

            // 2. Initiate the validator
            var validator = new jQueryValidatorWrapper("frmMasterPage", rules, messages);

            // 3. Set the click event to do the validation
            $("#btnNext").click(function () {

                if (!validator.validate())
                    return false;
                else {

                    var invoiceValue = $('#<%= hfInvoiceValue.ClientID %>').val();

                    if ($('#txtTariffId').val() == '') {
                        alert('Anda tidak bisa melanjutkan transaksi ini, karena tarif tidak tersedia!')
                        return false;
                    }

                    if (parseFloat(invoiceValue) == 0) {
                        alert('Anda tidak bisa melanjutkan transaksi ini, karena nilai setoran bernilai 0!')
                        return false;
                    }

                    $("#divKeterangan").hide();
                    $("#fsProfilPerusahaan").hide();
                    $("#<%= fsKonfirmasi.ClientID %>").show();
                    $("#btnNext").hide();
                    $("#<%= btnSubmit.ClientID %>").show();
                    $("#<%= btnBack.ClientID %>").show();

                    var namaAksiKorporasi = $("#<%= ddlCorporateActionType.ClientID %> option:selected").text();

                    var money = parseFloat(invoiceValue);

                    $.post('<%= ResolveUrl("~/AjaxHandler/LoadData/GetBeSpelled.ashx") %>' + '?invoicevalue=' + invoiceValue)
                            .done(function (data) {
                                var r = JSON.parse(data);
                                if (r.BeSpelled != '') {
                                    $("#<%= lblValidasi.ClientID  %>").html("Biaya " + namaAksiKorporasi + " adalah sebesar Rp." + money.formatMoney(2, ".", ",") + " (" + r.BeSpelled + "). <br/> Surat setoran akan diberikan setelah proses aksi koporasi ini dikonfirmasi");
                                    $('#hdBeSpelled').val(r.BeSpelled);
                                }
                                else {
                                    $("#<%= lblValidasi.ClientID %>").html("Biaya " + namaAksiKorporasi + " adalah sebesar Rp." + money.formatMoney(2, ".", ",") + ". <br/> Surat setoran akan diberikan setelah proses aksi koporasi ini dikonfirmasi");
                                }
                            })
                            .fail(function () {
                                alert('Gagal mengkonversi terbilang !');
                            });
                }

                return false;

            });

            $("#<%= btnBack.ClientID %>").click(function () {

                $("#divKeterangan").show();
                $("#fsProfilPerusahaan").show();
                $("#<%= fsKonfirmasi.ClientID %>").hide();
                $("#<%= btnSubmit.ClientID %>").hide();
                $("#<%= btnBack.ClientID %>").hide();
                $("#btnNext").show();
                $("#btnClose").show();

            });

            $("#<%= btnSubmit.ClientID %>").click(function () {

                var id = $('#<%= hfID.ClientID %>').val();

                var corporateName = $('#<%= txtCorporateName.ClientID %>').val();
                var corporateSector = $('#<%= txtCorporateSector.ClientID %>').val();
                var npwp = $('#<%= txtNPWP.ClientID %>').val();
                var alamat1 = $('#<%= txtAlamat1.ClientID %>').val();
                var alamat2 = $('#<%= txtAlamat2.ClientID %>').val();
                var alamat3 = $('#<%= txtAlamat3.ClientID %>').val();
                var wilayahid = $("#<%= ddlWilayah.ClientID %> option:selected").val();
                var kotaid = $("#<%= ddlKota.ClientID %> option:selected").val();
                var kodePos = $('#<%= txtKodePos.ClientID %>').val();
                var telpon = $('#<%= txtTelpon.ClientID %>').val();
                var fax = $('#<%= txtFax.ClientID %>').val();
                var email = $('#<%= txtEmail.ClientID %>').val();
                var website = $('#<%= txtWebsite.ClientID %>').val();
                var corporateActionTypeID = $("#<%= ddlCorporateActionType.ClientID %> option:selected").val();

                var nilaiEmisi = $('#<%= txtNilaiEmisi.ClientID %>').val();

                var debtorID = $("#<%= ddlDebtor.ClientID %> option:selected").val();
                var tariffId = $("#txtTariffId").val();
                var invoiceValue = $("#<%= hfInvoiceValue.ClientID %>").val();

                var forPayment = $("#<%= ddlCorporateActionType.ClientID %> option:selected").text();
                var beSpelled = $("#hdBeSpelled").val();

                var impositionBaseID = $("#<%= hfImpositionBaseID.ClientID %>").val();

                var sectorCode = $("#<%= ddlSubSubSector.ClientID %> option:selected").val() == undefined ? '' : $("#<%= ddlSubSubSector.ClientID %> option:selected").val().split('|')[0];
                var subSectorCode = $("#<%= ddlSubSubSector.ClientID %> option:selected").val() == undefined ? '' : $("#<%= ddlSubSubSector.ClientID %> option:selected").val().split('|')[1];

                //                var debtorSectorID = $("#ddlSubSubSector option:selected").val().split('|')[3];

                var debtorSectorID = $('#<%= hfDebtorSectorID.ClientID %>').val();

                var objrecCorporateAction = new Object();

                objrecCorporateAction.ImpositionBaseID = encodeURIComponent(impositionBaseID);

                objrecCorporateAction.BeSpelled = encodeURIComponent(beSpelled);
                objrecCorporateAction.ForPayment = encodeURIComponent(forPayment);
                objrecCorporateAction.SectorCode = encodeURIComponent(sectorCode);
                objrecCorporateAction.SubSectorCode = encodeURIComponent(subSectorCode);

                objrecCorporateAction.CorporateActionID = encodeURIComponent(id);
                objrecCorporateAction.CorporateName = encodeURIComponent(corporateName);

                objrecCorporateAction.CorporateSector = encodeURIComponent(corporateSector);

                objrecCorporateAction.NPWP = encodeURIComponent(npwp);
                objrecCorporateAction.Address1 = encodeURIComponent(alamat1);
                objrecCorporateAction.Address2 = encodeURIComponent(alamat2);
                objrecCorporateAction.Address3 = encodeURIComponent(alamat3);
                objrecCorporateAction.RegionID = encodeURIComponent(wilayahid);
                objrecCorporateAction.CityID = encodeURIComponent(kotaid);
                objrecCorporateAction.ZipCode = encodeURIComponent(kodePos);
                objrecCorporateAction.Phone = encodeURIComponent(telpon);
                objrecCorporateAction.Fax = encodeURIComponent(fax);
                objrecCorporateAction.Email = encodeURIComponent(email);
                objrecCorporateAction.Website = encodeURIComponent(website);
                objrecCorporateAction.CorporateActionTypeID = encodeURIComponent(corporateActionTypeID);
                objrecCorporateAction.ImpositionValue = encodeURIComponent(nilaiEmisi);
                objrecCorporateAction.DebtorID = encodeURIComponent(debtorID);
                objrecCorporateAction.InvoiceValue = encodeURIComponent(invoiceValue);

                objrecCorporateAction.DebtorSectorID = encodeURIComponent(debtorSectorID);

                objrecCorporateAction.TariffID = encodeURIComponent(tariffId);
                objrecCorporateAction.BillingNo = encodeURIComponent($('#<%= hfBillingNo.ClientID %>').val());
                objrecCorporateAction.InvoiceNo = encodeURIComponent($('#<%= hfInvoiceNo.ClientID %>').val());
                objrecCorporateAction.CorporateActionDate = encodeURIComponent($('#<%= hfCorporateActionDate.ClientID %>').val());
                objrecCorporateAction.InvoiceDate = encodeURIComponent($('#<%= hfInvoiceDate.ClientID %>').val());

                objrecCorporateAction.Captcha = encodeURIComponent('internal');

                // variable untuk expire captcha ------------>
                objrecCorporateAction.IsExpired = "0";

                jsonData = JSON.stringify(objrecCorporateAction);

                var handlerUrl = '<%= ResolveUrl("~/ajaxhandler/transaction/recCorporateActionhandler.ashx") %>';

                if (id == 0) {

                    $.ajax({
                        type: 'POST',
                        url: handlerUrl + "?method=insert",
                        contentType: 'application/json',
                        dataType: 'json',
                        data: jsonData,
                        success: function (data) {
                            if (data.IsSuccess) {

                                $('#<%= hfInvoiceValue.ClientID %>').val('');
                                $('#txtTariffId').hide();
                                $("#divKeterangan").hide();
                                $("#fsProfilPerusahaan").show();
                                $("#<%= fsKonfirmasi.ClientID %>").hide();
                                $("#btnNext").show();
                                $("#<%= btnSubmit.ClientID %>").hide();
                                $("#<%= btnBack.ClientID %>").hide();

                                $('#<%= ddlDebtor.ClientID %>').get(0).options.length = 0;
                                $('#<%= ddlDebtor.ClientID %>').get(0).options[0] = new Option("-- emiten aksi --", "");
                                $('#<%= ddlDebtor.ClientID %>').trigger('chosen:updated');

                                $('#<%= ddlSubSubSector.ClientID %>').get(0).options.length = 0;
                                $('#<%= ddlSubSubSector.ClientID %>').get(0).options[0] = new Option("-- jenis usaha --", "");
                                $('#<%= ddlSubSubSector.ClientID %>').trigger('chosen:updated');

                                $('#<%= txtNilaiEmisi.ClientID %>').val('');

                                $('#<%= ddlCorporateActionType.ClientID %>').val('');
                                $('#trNilai').hide();
                                var formUrl = '<%= ResolveUrl("~/forms/transaction/recPrintInvoiceform.aspx") %>';
                                OpenInNewTab(formUrl + '?invoiceno=' + data.Data + '&email=' + email);

                            }
                            else {

                                alert(data.Message);

                            }
                        },
                        error: function (response) {
                            var r = JSON.parse(response.responseText);
                            alert("Error Message: " + r.Message);
                        }
                    });
                }
                else {
                    CallAjax(handlerUrl, "?method=update", jsonData);

                }

                return false;

            });

        });

       
    </script>
    <script type="text/javascript" language="javascript">

        $(function () {

            $('#trNilai').hide();

            var id = $('#<%= hfID.ClientID %>').val();
            if (id > 0) {

                $('#btnNext').hide();
                $('#<%= btnSubmit.ClientID %>').show();

                $('#trNilai').show();

                var typeId = $('#<%= ddlCorporateActionType.ClientID %>').val();

                if (typeId == '1') {
                    $('#lblNilai').text('Total Aset');
                }
                else if (typeId == '4') {
                    $('#lblNilai').text('Nilai Emisi');
                }
                else if (typeId == '') {
                    $('#lblNilai').text('');
                }
                else {
                    $('#lblNilai').text('Per Tindakan');
                }

            }

        });

    </script>
    <script type="text/javascript">

        $(document).ready(function () {

            $('#<%= ddlDebtor.ClientID %>').change(function () {

                var debtorId = $("#<%= ddlDebtor.ClientID %> option:selected").val();

                $sectors = $('#<%= ddlSubSubSector.ClientID %>');

                if (debtorId > 0) {
                    var handlerUrl = '<%= ResolveUrl("~/AjaxHandler/LoadData/getDebtorSector.ashx?debtor_id=") %>';

                    $.ajax({
                        type: 'POST',
                        url: handlerUrl + debtorId + '&method=getdatabydebtorcorporateaction',
                        contentType: 'application/json',
                        dataType: 'json',
                        success: function (datas) {
                            $sectors.get(0).options.length = 0;

                            if (datas.length > 1) {
                                $sectors.get(0).options[0] = new Option("-- pilih jenis usaha --", "");

                                $.each(datas, function (i, data) {

                                    // Format Value -> SectorCode | SubSectorCode | SubSubSectorID | DebtorSectorID
                                    $sectors.append('<option value="' + data.recSector.SectorCode + "|" + data.recSubSector.SubSectorCode + "|" + data.SubSubSectorID + "|" + data.DebtorSectorID + '">' + data.recSector.SectorName + ' - ' + data.recSubSector.SubSectorName + ' - ' + data.recSubSubSector.SubSubSectorName + '</option>');

                                });

                                $sectors.trigger('chosen:updated');
                            }
                            else if (datas.length == 1) {
                                // Format Value -> SectorCode | SubSectorCode | SubSubSectorID | DebtorSectorID
                                $sectors.append('<option value="' + datas[0].recSector.SectorCode + "|" + datas[0].recSubSector.SubSectorCode + "|" + datas[0].SubSubSectorID + "|" + datas[0].DebtorSectorID + '">' + datas[0].recSector.SectorName + ' - ' + datas[0].recSubSector.SubSectorName + ' - ' + datas[0].recSubSubSector.SubSubSectorName + '</option>');
                                $sectors.trigger('chosen:updated');

                                GetTariff();
                            }

                        },
                        error: function () {
                            alert('Error!');
                        }
                    });
                }
                else {
                    $sectors.get(0).options.length = 0;
                    $sectors.get(0).options[0] = new Option("-- pilih jenis usaha --", "");
                    $sectors.trigger('chosen:updated');
                }

            });

            $('#<%= ddlCorporateActionType.ClientID %>').change(function () {

                $('#trNilai').show();

                var typeId = $(this).val();

                if (typeId == '1') {
                    $('#lblNilai').text('Total Aset');
                }
                else if (typeId == '4') {
                    $('#lblNilai').text('Nilai Emisi');
                }
                else if (typeId == '') {
                    $('#lblNilai').text('');
                }
                else {
                    $('#lblNilai').text('Per Tindakan');
                }

                if (typeId > 0) {

                    var handlerUrl = '<%= ResolveUrl("~/AjaxHandler/LoadData/getDebtor.ashx") %>';
                    $debtors = $('#<%= ddlDebtor.ClientID %>');

                    $.ajax({
                        type: 'POST',
                        url: handlerUrl + '?method=getbycorporateactiontype&CorporateActionTypeID=' + typeId,
                        contentType: 'application/json',
                        dataType: 'json',
                        success: function (datas) {

                            if (datas.length > 1) {
                                $debtors.get(0).options.length = 0;
                                $debtors.get(0).options[0] = new Option("-- pilih emiten aksi --", "");
                                $.each(datas, function (i, data) {
                                    $debtors.append('<option value="' + data.DebtorID + '">' + data.DebtorName + '</option>');
                                });
                                $debtors.trigger('chosen:updated');

                            }
                            else if (datas.length == 1) {
                                $debtors.get(0).options.length = 0;
                                $debtors.append('<option value="' + datas[0].DebtorID + '">' + datas[0].DebtorName + '</option>');
                                $debtors.trigger('chosen:updated');
                            }

                            $('#<%= ddlDebtor.ClientID %>').change();

                        },
                        error: function () {
                            alert('Error occured! when changes Corporate Action Type!');
                        }
                    });
                }
            });

            $('#<%= ddlSubSubSector.ClientID %>').change(function () {
                GetTariff();
            });

        });

    </script>

 <div>
    <div id="divKeterangan">
    </div>
    <br />
    <fieldset id="fsProfilPerusahaan">
        <legend><b>Profil Perusahaan</b></legend>
        <div>
            <table border="0">
                <tr id="trCorporateName" runat="server">
                    <td class="spasiRow">
                        Nama Perusahaan
                    </td>
                    <td width="10">
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtCorporateName" runat="server" Width="500"></asp:TextBox>
                        <span style="color: Red;">*</span>
                    </td>
                </tr>
                <tr id="trCorporateSector" runat="server">
                    <td class="spasiRow">
                        Jenis Usaha
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtCorporateSector" runat="server" MaxLength="50" Width="200"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trNPWP" runat="server">
                    <td class="spasi2Row">
                        NPWP
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtNPWP" runat="server" Width="200"></asp:TextBox>&nbsp;<span style="color: Red;">*</span>
                        <br />
                        Jika tidak mempunyai NPWP untuk perseorangan, harap hubungi CS OJK
                    </td>
                </tr>
                <tr id="trAddress1" runat="server">
                    <td class="spasiRow">
                        Alamat&nbsp;
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtAlamat1" runat="server" Width="350"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trAddress2" runat="server">
                    <td class="spasiRow">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtAlamat2" runat="server" Width="350"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trAddress3" runat="server">
                    <td class="spasiRow">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtAlamat3" runat="server" Width="350"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trRegion" runat="server">
                    <td class="spasiRow">
                        Wilayah
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlWilayah" runat="server" Width="200">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr id="trCity" runat="server">
                    <td class="spasiRow">
                        Kota
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlKota" runat="server" Width="200">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr id="trZipCode" runat="server">
                    <td class="spasiRow">
                        Kode Pos
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtKodePos" runat="server" MaxLength="5" Width="200"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trPhone" runat="server">
                    <td class="spasiRow">
                        Telepon
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtTelpon" runat="server" Width="200"></asp:TextBox>
                        Fax :
                        <asp:TextBox ID="txtFax" runat="server" Width="200"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trEmail" runat="server">
                    <td class="spasiRow">
                        Email
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="200"></asp:TextBox>&nbsp;<span style="color: Red;">*</span>
                    </td>
                </tr>
                <tr id="trWebSite" runat="server">
                    <td class="spasiRow">
                        Website
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtWebsite" runat="server" Width="200"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trCorporateActionType">
                    <td class="spasiRow">
                        Jenis Aksi Korporasi
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCorporateActionType" runat="server" Width="335">
                        </asp:DropDownList>
                        &nbsp;<span style="color: Red;">*</span>
                    </td>
                </tr>
                <tr id="trDebtor">
                    <td class="spasiRow">
                        Emiten Aksi
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlDebtor" runat="server" Width="300">
                        </asp:DropDownList>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: Red;">*</span>
                    </td>
                </tr>
                <tr id="trSubSubSector">
                    <td class="spasiRow">
                        Jenis Usaha Emiten
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSubSubSector" runat="server" Width="300">
                        </asp:DropDownList>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: Red;">*</span>
                        <br />
                    </td>
                </tr>
                <tr id="trNilai">
                    <td class="spasiRow">
                        <label id="lblNilai">
                        </label>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtNilaiEmisi" runat="server" Width="200"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
    </fieldset>
    <fieldset id="fsKonfirmasi" runat="server">
        <legend>Konfirmasi</legend>
        <div>
            <table border="0" cellpadding="2" cellspacing="2">
                <tr>
                    <td style="width: 50">
                    </td>
                    <td>
                    </td>
                    <td colspan="3">
                    </td>
                </tr>
                <tr>
                    <td style="width: 50">
                    </td>
                    <td>
                    </td>
                    <td colspan="3">
                        <asp:Label ID="lblValidasi" runat="server" ForeColor="#000099"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
    </fieldset>
    <br />
    <table border="0">
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
            <td>
                <div style="text-align: right; padding-top: 10px;">
                    <button id="btnCancel" type="button">
                        Batal</button>
                    <button id="btnBack" type="button" runat="server">
                        Kembali</button>
                    <button id="btnNext" type="button">
                        Lanjut</button>
                    <button id="btnSubmit" type="submit" runat="server">
                        Submit</button>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:HiddenField ID="hfInvoiceValue" runat="server" />
                <asp:HiddenField ID="hfID" runat="server" />
                <asp:HiddenField ID="hfInvoiceNo" runat="server" />
                <asp:HiddenField ID="hfInvoiceDate" runat="server" />
                <asp:HiddenField ID="hfBillingNo" runat="server" />
                <asp:HiddenField ID="hfCorporateActionDate" runat="server" />
                <asp:HiddenField ID="hfImpositionBaseID" runat="server" />
                <asp:HiddenField ID="hfDebtorSectorID" runat="server" />
                <input type="hidden" id="hdBeSpelled" name="hdBeSpelled" />
                <input type="hidden" id="txtTariffId" name="txtTariffId" />
            </td>
        </tr>
    </table>
    </div>
</asp:Content>

